package com.training1.core.entity;



import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import scala.sys.process.ProcessBuilderImpl.Simple;

import com.training1.core.common.entity.DataEntity;

import freemarker.template.SimpleDate;


@Alias("Payment")
public class PaymentEntity extends DataEntity{
	
	/**
	 * 财务出
	 */
	private static final long serialVersionUID = 5608799216669341214L;
	
	
	private String orderNumber;//订单编号
	
	private Integer paymentType;//支出类型
	
	private Double cash;//金额
	
	private String cellPhone;//会员手机号
	
	private Date paymentTime;//支出时间
	
	private String memberName;//会员姓名
	
	private String userName;//开单中心
	
	private String paymentTimeStr;//时间类型
	
	
	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}


	public Integer getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(Integer paymentType) {
		this.paymentType = paymentType;
	}

	public Double getCash() {
		return cash;
	}

	public void setCash(Double cash) {
		this.cash = cash;
	}

	public String getCellPhone() {
		return cellPhone;
	}

	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}

	public Date getPaymentTime() {
		return paymentTime;
	}

	/**
	 * 格式化时间
	 * @param paymentTime
	 */
	public void setPaymentTime(Date paymentTime) {
		this.paymentTime = paymentTime;
		if(null != paymentTime){
			SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
			this.setPaymentTimeStr(sf.format(paymentTime));
		}
		
	}

	public String getPaymentTimeStr() {
		return paymentTimeStr;
	}

	public void setPaymentTimeStr(String paymentTimeStr) {
		this.paymentTimeStr = paymentTimeStr;
	}

	
	
	
}
